Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODTranslation


GetISOTypeFromPlatformType

The GetISOTypeFromPlatformType method returns the ISO type corresponding to the specified platform-specific type.

ODValueType GetISOTypeFromPlatformType (
                        in ODPlatformType platformType, 
                        in ODPlatformTypeSpace typeSpace);
platformType
A 32-bit wrapper for the platform-specific type. On the Mac OS platform, this type is identical to the ScrapType or OSType types (a four-character code).
typeSpace
A 32-bit value used to specify the type of a platform-specific structure identifying a type space (data or file). The value of typeSpace must be one of the following: kODPlatformDataType or kODPlatformFileType.
return value
The corresponding ISO type.
DISCUSSION
The value kODPlatformDataType for the typeSpace parameter indicates the native operating system scrap type. The value kODPlatformFileType indicates the native operating system file type.

Your part calls this method. OpenDoc does not use platform types (for example, OSType on the Mac OS). Therefore, to interoperate between OpenDoc and non-OpenDoc systems, platform types and ISO types need to be translated from one kind to the other.

It is your responsibility to deallocate the returned value type when it is no longer needed.

SEE ALSO
The ODPlatformTypeSpace type (page 920).
The ODValueType type (page 904).
The ODStorageSystem::CreatePlatformTypeList method (page 661).
The ODTranslation::GetPlatformTypeFromISOType method (page 792).
"Translation" on page 333 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help